package demo2;

public class Frog extends Animal implements IAmphibious {
    public Frog(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃...");
    }

    @Override
    public void test() {
        System.out.println("Amphibious的抽象类");
    }

    @Override
    public void run() {
        System.out.println(this.name + "正在跳...");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "正在游泳...");
    }
}
